import { combineReducers } from 'redux';
import HANDLE__CLICK from '../actions/names';

function inputText(state = '', action) {
  switch (action.type) {
    case HANDLE__CLICK:
      return action.text;
    default:
      return state;
  }
}

export default combineReducers({
  inputText,
});
